<?php



/**
 * ForumsMessage
 */
class ForumsMessage
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var text $content
     */
    private $content;

    /**
     * @var datetime $created_at
     */
    private $created_at;

    /**
     * @var ForumsDiscussion
     */
    private $discussion;

    /**
     * @var User
     */
    private $user;


    /**
     * Get id
     *
     * @return integer $id
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set content
     *
     * @param text $content
     */
    public function setContent($content)
    {
        $this->content = $content;
    }

    /**
     * Get content
     *
     * @return text $content
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set created_at
     *
     * @param datetime $createdAt
     */
    public function setCreatedAt($createdAt)
    {
        $this->created_at = $createdAt;
    }

    /**
     * Get created_at
     *
     * @return datetime $createdAt
     */
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    /**
     * Set discussion
     *
     * @param ForumsDiscussion $discussion
     */
    public function setDiscussion(\ForumsDiscussion $discussion)
    {
        $this->discussion = $discussion;
    }

    /**
     * Get discussion
     *
     * @return ForumsDiscussion $discussion
     */
    public function getDiscussion()
    {
        return $this->discussion;
    }

    /**
     * Set user
     *
     * @param User $user
     */
    public function setUser(\User $user)
    {
        $this->user = $user;
    }

    /**
     * Get user
     *
     * @return User $user
     */
    public function getUser()
    {
        return $this->user;
    }
}